import * as Router from 'koa-router';
import { TeamsControl , PlayerControl , SeasonControl , SeasonTypeControl , TeamRankDataControl , NBADataControl }  from '../../database/controller';
const nba = new Router();

nba.post('/nba/getTeamLists', TeamsControl.getTeamsLists);
nba.post('/nba/getPlayerLists', PlayerControl.getPlayerLists);
nba.post('/nba/getPlayerIdLists', PlayerControl.getPlayerIdList);
nba.post('/nba/getSeasonLists', SeasonControl.getSeasonLists);
nba.post('/nba/getSeasonByName', SeasonControl.getSeasonByName);
nba.post('/nba/getSeasonTypeLists', SeasonTypeControl.getSeasonTypeLists);
nba.post('/nba/getSeasonTypeByName', SeasonTypeControl.getSeasonTypeByName);
nba.post('/nba/getTeamRankDataLists', TeamRankDataControl.getTeamRankDatas);
nba.post('/nba/getNBADataLists', NBADataControl.getNBADataLists);

export { nba };